package zhizhemodi.tech.short_term_bwork.mapper;

import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import zhizhemodi.tech.short_term_bwork.entity.Department;

@Repository
public interface DepartmentMapper extends BaseMapper<Department>{
    
    @Update("UPDATE department SET department_name=#{newName} WHERE department_id = #{dId}")
    public int updateName(String newName, Integer dId);

    @Update("UPDATE department SET department_char=#{newChar} WHERE department_id = #{dId}")
    public int updateChar(String newChar, Integer dId);
}
